<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Templates\LatteFilter</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li><a href="namespace-Nette.html">Nette</a>
		</li>
		<li><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li class="active"><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li><a href="Nette.Templates.BaseTemplate.html">BaseTemplate</a></li>
		<li><a href="Nette.Templates.CachingHelper.html">CachingHelper</a></li>
		<li><a href="Nette.Templates.CurlyBracketsMacros.html">CurlyBracketsMacros</a></li>
		<li class="active"><a href="Nette.Templates.LatteFilter.html">LatteFilter</a></li>
		<li><a href="Nette.Templates.LatteMacros.html">LatteMacros</a></li>
		<li><a href="Nette.Templates.SnippetHelper.html">SnippetHelper</a></li>
		<li><a href="Nette.Templates.Template.html">Template</a></li>
		<li><a href="Nette.Templates.TemplateCacheStorage.html">TemplateCacheStorage</a></li>
		<li><a href="Nette.Templates.TemplateFilters.html">TemplateFilters</a></li>
		<li><a href="Nette.Templates.TemplateHelpers.html">TemplateHelpers</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.Templates.IFileTemplate.html">IFileTemplate</a></li>
		<li><a href="Nette.Templates.ITemplate.html">ITemplate</a></li>
	</ul>

</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.Templates.html" title="Summary of Nette\Templates">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.Templates.html">Nette\Templates</a></p>

		<h1>Class LatteFilter</h1>

		<div class="classDescription">
		
<p>Compile-time filter Latte.</p>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="Nette.Object.html">Nette\Object</a>
				
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Templates\LatteFilter</b>				
			</dd>
		</dl>



		<div class="classInfo">
			
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Templates.Filters.LatteFilter.php.html#18">/Templates/Filters/LatteFilter.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="1 setHandler" id="_setHandler">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Templates.LatteFilter.html">LatteFilter</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setHandler">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#66" title="go to source code"><b>setHandler</b></a>(
					ILatteHandler
					<var>$handler</var>
			)</code>

			<div class="short">
				
<p>Sets a macro handler.</p>

			</div>

			<div class="detailed">
				
<p>Sets a macro handler.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$handler</code> ILatteHandler <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Templates.LatteFilter.html">LatteFilter</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getHandler" id="_getHandler">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				ILatteHandler
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getHandler">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#79" title="go to source code"><b>getHandler</b></a>(
			)</code>

			<div class="short">
				
<p>Returns macro handler.</p>

			</div>

			<div class="detailed">
				
<p>Returns macro handler.</p>




					<h4>Returns</h4>
					<div class="smallList">ILatteHandler </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __invoke" id="___invoke">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___invoke">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#93" title="go to source code"><b>__invoke</b></a>(
					string
					<var>$s</var>
			)</code>

			<div class="short">
				
<p>Invokes filter.</p>

			</div>

			<div class="detailed">
				
<p>Invokes filter.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$s</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 getLine" id="_getLine">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				int
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_getLine">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#393" title="go to source code"><b>getLine</b></a>(
			)</code>

			<div class="short">
				
<p>Returns current line number.</p>

			</div>

			<div class="detailed">
				
<p>Returns current line number.</p>




					<h4>Returns</h4>
					<div class="smallList">int </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 setDelimiters" id="_setDelimiters">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Templates.LatteFilter.html">LatteFilter</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_setDelimiters">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#404" title="go to source code"><b>setDelimiters</b></a>(
					string
					<var>$left</var>, 
					string
					<var>$right</var>
			)</code>

			<div class="short">
				
<p>Changes macro delimiters.</p>

			</div>

			<div class="detailed">
				
<p>Changes macro delimiters.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$left</code> string left regular expression<br />
						<code>$right</code> string right regular expression<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Templates.LatteFilter.html">LatteFilter</a> provides a fluent interface</div>


			</div>
			</td>
		</tr>
		<tr data-order="0 formatModifiers" id="_formatModifiers">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_formatModifiers">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#428" title="go to source code"><b>formatModifiers</b></a>(
					string
					<var>$var</var>, 
					string
					<var>$modifiers</var>
			)</code>

			<div class="short">
				
<p>Applies modifiers.</p>

			</div>

			<div class="detailed">
				
<p>Applies modifiers.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$var</code> string <br />
						<code>$modifiers</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 fetchToken" id="_fetchToken">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_fetchToken">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#478" title="go to source code"><b>fetchToken</b></a>(
					string
					<var>&amp; $s</var>
			)</code>

			<div class="short">
				
<p>Reads single token (optionally delimited by comma) from string.</p>

			</div>

			<div class="detailed">
				
<p>Reads single token (optionally delimited by comma) from string.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$s</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 formatArray" id="_formatArray">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_formatArray">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#494" title="go to source code"><b>formatArray</b></a>(
					string
					<var>$s</var>, 
					string
					<var>$prefix</var> = <span class="php-quote">''</span>
			)</code>

			<div class="short">
				
<p>Formats parameters to PHP array.</p>

			</div>

			<div class="detailed">
				
<p>Formats parameters to PHP array.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$s</code> string <br />
						<code>$prefix</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 formatString" id="_formatString">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				string
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_formatString">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#535" title="go to source code"><b>formatString</b></a>(
					string
					<var>$s</var>
			)</code>

			<div class="short">
				
<p>Formats parameter to PHP string.</p>

			</div>

			<div class="detailed">
				
<p>Formats parameter to PHP string.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$s</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">string </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 invoke" id="_invoke" class="deprecated">
			<td align="right" width="1%"><code class="nowrap">
				deprecated  public static
				
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_invoke">#</a>
			<code class="nowrap">
				<a href="source-Templates.Filters.LatteFilter.php.html#548" title="go to source code"><b>invoke</b></a>(
					
					<var>$s</var>
			)</code>

			<div class="short">
				
<p>Invokes filter.</p>

			</div>

			<div class="detailed">
				
<p>Invokes filter.</p>






			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.Object.html#methodSummary">Nette\Object</a></h2>
	<div class="box"><code>
		<a href="Nette.Object.html#_getClass" class="deprecated">getClass()</a>, <a href="Nette.Object.html#_getReflection">getReflection()</a>, <a href="Nette.Object.html#___call">__call()</a>, <a href="Nette.Object.html#___callStatic">__callStatic()</a>, <a href="Nette.Object.html#_extensionMethod">extensionMethod()</a>, <a href="Nette.Object.html#___get">__get()</a>, <a href="Nette.Object.html#___set">__set()</a>, <a href="Nette.Object.html#___isset">__isset()</a>, <a href="Nette.Object.html#___unset">__unset()</a>
	</code></div>


	<div id="constantSummary">
		<table class="summary">
		<caption>Constant Summary</caption>
		<tr data-order="RE_STRING" id="RE_STRING">
			<td align="right" width="1%"><code><b>RE_STRING</b></code></td>
			<td><code><span class="php-quote">'\'(?:\\\\.|[^\'\\\\])*\'|&quot;(?:\\\\.|[^&quot;\\\\])*&quot;'</span></code> <a href="#RE_STRING" class="anchor">#</a></td>
		</tr>
		<tr data-order="RE_IDENTIFIER" id="RE_IDENTIFIER">
			<td align="right" width="1%"><code><b>RE_IDENTIFIER</b></code></td>
			<td><code><span class="php-quote">'[_a-zA-Z\\x7F-\\xFF][_a-zA-Z0-9\\x7F-\\xFF]*'</span></code> <a href="#RE_IDENTIFIER" class="anchor">#</a></td>
		</tr>
		<tr data-order="HTML_PREFIX" id="HTML_PREFIX">
			<td align="right" width="1%"><code><b>HTML_PREFIX</b></code></td>
			<td><code><span class="php-quote">'n:'</span></code> <a href="#HTML_PREFIX" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_TEXT" id="CONTEXT_TEXT">
			<td align="right" width="1%"><code><b>CONTEXT_TEXT</b></code></td>
			<td><code><span class="php-quote">'text'</span></code> <a href="#CONTEXT_TEXT" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_CDATA" id="CONTEXT_CDATA">
			<td align="right" width="1%"><code><b>CONTEXT_CDATA</b></code></td>
			<td><code><span class="php-quote">'cdata'</span></code> <a href="#CONTEXT_CDATA" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_TAG" id="CONTEXT_TAG">
			<td align="right" width="1%"><code><b>CONTEXT_TAG</b></code></td>
			<td><code><span class="php-quote">'tag'</span></code> <a href="#CONTEXT_TAG" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_ATTRIBUTE" id="CONTEXT_ATTRIBUTE">
			<td align="right" width="1%"><code><b>CONTEXT_ATTRIBUTE</b></code></td>
			<td><code><span class="php-quote">'attribute'</span></code> <a href="#CONTEXT_ATTRIBUTE" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_NONE" id="CONTEXT_NONE">
			<td align="right" width="1%"><code><b>CONTEXT_NONE</b></code></td>
			<td><code><span class="php-quote">'none'</span></code> <a href="#CONTEXT_NONE" class="anchor">#</a></td>
		</tr>
		<tr data-order="CONTEXT_COMMENT" id="CONTEXT_COMMENT">
			<td align="right" width="1%"><code><b>CONTEXT_COMMENT</b></code></td>
			<td><code><span class="php-quote">'comment'</span></code> <a href="#CONTEXT_COMMENT" class="anchor">#</a></td>
		</tr>
		</table>
	</div>



	<div id="propertySummary">
		<table class="summary">
		<caption>Property Summary</caption>
		<tr data-order="context" id="$context">
			<td align="right" width="1%"><code class="nowrap">
				 
				string
			</code></td>

			<td width="1%"><var>$context</var></td>
			<td><pre><span class="php-keyword1">NULL</span></pre></td>
			<td> <a href="#$context" class="anchor">#</a></td>
		</tr>
		<tr data-order="escape" id="$escape">
			<td align="right" width="1%"><code class="nowrap">
				 
				
			</code></td>

			<td width="1%"><var>$escape</var></td>
			<td><pre><span class="php-keyword1">NULL</span></pre></td>
			<td> <a href="#$escape" class="anchor">#</a></td>
		</tr>

		</table>
	</div>


</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
